<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>开关按钮操作 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="SwitchButton Actions">开关按钮操作</h2>
	<p title="Click the buttons below to perform actions.">　　点击以下按钮可执行相应操作。</p>
	<div style="margin:20px 0;"></div>

    <div style="margin:20px 0;">
        <a href="#" class="easyui-linkbutton" onclick="$('#sb').switchbutton('disable')">&nbsp;禁用&nbsp;</a>
        <a href="#" class="easyui-linkbutton" onclick="$('#sb').switchbutton('enable')">&nbsp;启用&nbsp;</a>
    </div>

    <input id="sb" class="easyui-switchbutton" checked style="width:100px;height:30px" data-options="onText:'开',offText:'关'">
</body>
</html>